<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<script type="text/javascript" src="<?php echo JS_PATH; ?>formvalidator.js" charset="UTF-8"></script>
<script type="text/javascript" src="<?php echo JS_PATH; ?>formvalidatorregex.js" charset="UTF-8"></script>
<script language="JavaScript">
<!--
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"searchForm",onerror:function(msg){}});
	$("#order_sn").formValidator({onshow:"详细查询时不能为空",onfocus:"详细查询时不能为空"}).inputValidator({min:0,max:100});
	$("#username").formValidator({onshow:"详细查询时不能为空",onfocus:"详细查询时不能为空"}).inputValidator({min:0,max:100});
	$("#consignee").formValidator({onshow:"详细查询时不能为空",onfocus:"详细查询时不能为空"}).inputValidator({min:0,max:100});
});
//-->
</script>
<style>
.main-div {border:1px solid #D9E4EA; margin:auto; margin-bottom:10px; padding:2px; width:99%;}
.main-div table {background:#FFFFFF; border-bottom:10px solid #FFFFFF; border-top:10px solid #FFFFFF; width:99%;}
.main-div table td {padding:4px 0 4px 8px; border-bottom:1px solid #EEEEEE;}
</style>
<div class="main-div">
<form name="searchForm" method="post" action="?m=ushop&c=orders&a=search_order_info&menuid=<?php echo $_GET['menuid'];?>" id="searchForm">
<table width="100%" cellspacing="1" cellpadding="3">
	<tr>
        <td width="15%"><div align="right"><strong>订单号：</strong></div></td>
        <td colspan="3"><input type="text" id="order_sn" name="sear[order_sn]"></td>
    </tr>
    <tr>
        <td width="15%"><div align="right"><strong>发件人：</strong></div></td>
        <td width="35%"><input type="text" id="username" name="sear[username]"></td>
        <td width="15%"><div align="right"><strong>收货人：</strong></div></td>
        <td width="35%"><input type="text" id="consignee" name="sear[consignee]"></td>
    </tr>
    <tr>
        <td><div align="right"><strong>配送方式：</strong></div></td>
        <td><?php echo form::select($send_status,NULL,'name="sear[shipping_id]"', L('请选择……'))?></td>
        <td><div align="right"><strong>支付方式：</strong></div></td>
        <td><?php echo form::select($pay_status,NULL,'name="sear[pay_id]"', L('请选择……'))?></td>
    </tr>
    <tr>
        <td><div align="right"><strong>下单时间：</strong></div></td>
        <td>
			<?php echo form::date('sear[start_time]','','')?>
            <?php echo L('to'); ?>
            <?php echo form::date('sear[end_time]','','')?>  
        </td>
		<td><div align="right"><strong>订单状态：</strong></div></td>
        <td><?php echo form::select($order_status,NULL,'name="sear[order]"', L('请选择……'))?></td>
		
    </tr>
    <tr>
        <td colspan="4">
            <div align="center">
                <input type="submit" value=" 搜索 " id="dosubmit" class="button" name="dosubmit">
                <input type="reset" value=" 重置 " class="button" name="reset">
            </div>
        </td>
    </tr>
</table>
</form>
</div>
</body>
</html>